<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/public/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/public/css/public.css" media="all"/>
</head>
<body class="childrenBody">
<form class="layui-form layui-col-lg-offset1 layui-col-lg10 lay-col-md12" id="copyFormOrder">
    <input type="hidden" name="orderCode" value="{{orderCode}}" id="orderCode">
    <input type="hidden" name="states" value="-1" id="states"/>
    <!--运输方式-->
    <input type="hidden" name="standby2" id="tranType" value="{{standby2}}"/>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">订单日期：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" value="{{orderDate}}" readonly
                       name="orderDate"
                       id="orderDate"
                       placeholder="请输入选择">
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">业务类型：</label>
            <div class="layui-input-block">
                <select id="businessTypes" lay-search="" lay-filter="businessTypes" lay-verify="required"
                        name="businessTypes">
                    <option value="{{businessTypes}}" selected>{{businessTypes}}</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">品名：</label>
            <div class="layui-input-block">
                <input type="text" id="ofTheGoods" value="{{ofTheGoods}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">箱型：</label>
            <div class="layui-input-block">
                <input type="text" id="aBox" value="{{aBox}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">箱号：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" value="{{cartonNo}}" name="cartonNo"
                       placeholder="请输入箱号">
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">发货单位：</label>
            <div class="layui-input-block">
                <input type="text" id="deliveryUnit" value="{{deliveryUnit}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">装货地点：</label>
            <div class="layui-input-block">
                <input type="text" id="standby1" value="{{standby1}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    {{if tranType != 3}}
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label" id="aStationText">发出站：</label>
            <div class="layui-input-block">
                <input type="text" id="aStation" value="{{aStation}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    {{/if}}
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label" id="arriveStationText">到站：</label>
            <div class="layui-input-block">
                <input type="text" id="arriveStation" value="{{arriveStation}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">收货人：</label>
            <div class="layui-input-block">
                <input type="text" id="receivingUnit" name="receivingUnit" value="{{receivingUnit}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">结算人：</label>
            <div class="layui-input-block">
                <input type="text" id="settlementPeople" value="{{settlementPeople}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-col-md4">
        <div class="layui-form-item">
            <label class="layui-form-label">应收金额：</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input required" id="accountsReceivableAmount"
                       name="accountsReceivableAmount"
                       placeholder="请输入应收金额" value="{{accountsReceivableAmount}}">
            </div>
        </div>
    </div>
    <div class="layui-col-md4" style="height: 53px;">
        <div class="layui-form-item">
            <div class="check-two">
                <input value="{{whetherSelfTransport}}" type="hidden" id="whetherSelfTransportValue"/>
                {{if whetherSelfTransport== 1 }}
                <input type="checkbox" lay-skin="primary" value="1" lay-filter="whetherSelfTransport"
                       name="whetherSelfTransport"
                       title="是否自运输"
                       checked
                >
                {{else}}
                <input type="checkbox" lay-skin="primary" value="1" lay-filter="whetherSelfTransport"
                       name="whetherSelfTransport"
                       title="是否自运输"
                >
                {{/if}}
                {{if isInvoice == 1}}
                <input type="checkbox" lay-skin="primary" value="1" name="isInvoice"
                       title="是否需要发票"
                       checked
                >
                {{else}}
                <input type="checkbox" lay-skin="primary" value="1" name="isInvoice"
                       title="是否需要发票"
                >
                {{/if}}
            </div>
        </div>
    </div>
    <div class="layui-col-md4 driver">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #009feb">*</span>司机：</label>
            <div class="layui-input-block">
                <input type="text" id="driver" value="{{driver}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-col-md4 licensePlate">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: #009feb">*</span>车牌：</label>
            <div class="layui-input-block">
                <input type="text" id="licensePlate" value="{{licensePlate}}" autocomplete="off" placeholder="请选择"
                       class="layui-input" />
            </div>
        </div>
    </div>
    <div class="layui-col-md12">
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注：</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" name="orderNote" id="orderNote">{{orderNote}}</textarea>
            </div>
        </div>
    </div>
    <div class="layui-col-md12" style="margin-bottom: 60px; padding-left: 110px;">
        <div class="layui-table-box" style="overflow: inherit">
            <div class="layui-table-body layui-table-main" style="overflow: inherit">
                <a class="layui-btn layui-btn-sm" onclick="copyOrder.addRow()">增行</a>
                <table cellspacing="0" cellpadding="0" border="0" class="layui-table" lay-even="">
                    <thead>
                    <tr>
                        <td style="width: 200px">
                            <div class="layui-table-cell">费用类型
                            </div>
                        </td>
                        <td style="width: 100px">
                            <div class="layui-table-cell">应付金额</div>
                        </td>
                        <td style="width: 100px">
                            <div class="layui-table-cell">实付金额</div>
                        </td>
                        <td style="width: 200px">
                            <div class="layui-table-cell">收款单位</div>
                        </td>
                        <td>
                            <div class="layui-table-cell">备注</div>
                        </td>
                        <td style="width: 50px">
                            <div class="layui-table-cell">操作</div>
                        </td>
                    </tr>
                    </thead>
                    <tbody id="row">
                    <!--<tr>
                        <td>
                            <select name="" class="">
                                <option>请选择</option>
                                <option>1</option>
                            </select>
                        </td>
                        <td>
                            <div class="layui-table-cell"></div>
                            <input class="layui-input layui-table-edit money" type="text"/>
                        </td>
                        <td>
                            <div class="layui-table-cell"></div>
                            <input class="layui-input layui-table-edit money" type="text"/>
                        </td>
                        <td>
                            <select name="">
                                <option>请选择</option>
                                <option>1</option>
                            </select>
                        </td>
                        <td>
                            <div class="layui-table-cell"></div>
                            <input class="layui-input layui-table-edit" type="text"/>
                        </td>
                        <td>
                            <div class="layui-table-cell"><a href="javascript:void(0)"
                                                             style="color:#009feb;padding-left: 8px;"
                                                             lay-event="del">删除</a></div>
                        </td>
                    </tr>-->
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <div class="layui-col-md12">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <a class="layui-btn" onclick="copyOrder.audit()" lay-submit="" lay-filter="audit">审核</a>
                <a class="layui-btn" onclick="copyOrder.copyOrder()" lay-submit="" lay-filter="copyOrder">保存</a>
                <a onclick="layuiFunciton.closeOpen()" class="layui-btn layui-btn-primary">关闭</a>
            </div>
        </div>
    </div>
</form>
<script type="text/javascript" src="/public/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/layui/layui.js"></script>
<script type="text/javascript" src="/js/public.function.js"></script>
<script type="text/javascript" src="js/copy.js"></script>
</body>
</html>